//
//  KXMLNode.h
//  Ghac 4S
//
//  Created by apple on 11-9-6.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#pragma once
#define KN_ELEMENT_NODE                     1;
#define KN_ATTRIBUTE_NODE                   2;
#define KN_TEXT_NODE                        3;
#define KN_CDATA_SECTION_NODE               4;
#define KN_ENTITY_REFERENCE_NODE            5;
#define KN_ENTITY_NODE                      6;
#define KN_PROCESSING_INSTRUCTION_NODE      7;
#define KN_COMMENT_NODE                     8;
#define KN_DOCUMENT_NODE                    9;
#define KN_DOCUMENT_TYPE_NODE               10;
#define KN_DOCUMENT_FRAGMENT_NODE           11;
#define KN_NOTATION_NODE                    12;
//1	ELEMENT_NODE
//2	ATTRIBUTE_NODE
//3	TEXT_NODE
//4	CDATA_SECTION_NODE
//5	ENTITY_REFERENCE_NODE
//6	ENTITY_NODE
//7	PROCESSING_INSTRUCTION_NODE
//8	COMMENT_NODE
//9	DOCUMENT_NODE
//10	DOCUMENT_TYPE_NODE
//11	DOCUMENT_FRAGMENT_NODE
//12	NOTATION_NODE
@class KXPath;
@interface KXMLNode : NSObject
{
    KXMLNode*                       m_parent;
    NSMutableArray*                 m_childrens;
    NSString*                       m_name;
    NSMutableDictionary*            m_attribute;
    NSInteger                       m_type;
    NSString*                       m_nodeValue;
    
}
@property (nonatomic, retain)   KXMLNode*               __parent__;
@property (nonatomic, retain)   NSMutableArray*         __childrens__;
@property (nonatomic, copy)     NSString*               __name__;
@property (nonatomic, retain)   NSMutableDictionary*    __attributes__;
@property (nonatomic, assign)   NSInteger               __type__;
@property (nonatomic, copy)     NSString*               __nodeValue__;

-(NSArray*) arrayByXPath:(KXPath*)path;


@end
